#ifndef SERIAL_H
#define SERIAL_H

#include <QObject>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include <QThread>
class serial : public QObject
{
    Q_OBJECT
public:
    explicit serial(QObject *parent = 0);
    ~serial();
    QSerialPort *serialPort;
signals:

public slots:
    void open();
    void write(QString data);
    void read();
private:

};

#endif // SERIAL_H
